package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.BannerDao;
import com.gdk.dao.LoginDao;
import com.gdk.dao.NavigationDao;
import com.gdk.service.ArticleService;
import com.gdk.service.BannerService;
import com.gdk.service.LoginService;
import com.gdk.service.NavigationService;
import com.gdk.utils.Md5Utils;


/**
 * 导航业务处理
 * */
@Service("BannerService")
public class BannerServiceImpl implements BannerService {
	@Autowired
    private BannerDao bannerDao;

	 @Override
	public List<Map<String, Object>> selectAllBanner() {
		return bannerDao.selectAllBanner();
	}
	
	 @Override
	public int addBanner(Map<String, Object> map) {
		return bannerDao.addBanner(map);
	}
	@Override
	public Map<String, Object> selectBannerDetails(Map<String, Object> map) {
		return bannerDao.selectBannerDetails(map);
	}
	@Override
	public int updateBannerDetails(Map<String, Object> map) {
		return bannerDao.updateBannerDetails(map);
	}
}
